package org.nbict.iot.protocol.task;

import org.apache.storm.task.IMetricsContext;
import org.apache.storm.trident.state.State;
import org.apache.storm.trident.state.StateFactory;

import java.util.Map;

/**
 * Created by songseven on 18/6/25.
 */
public class OutbreakTrendFactory implements StateFactory {
    @Override
    public State makeState(Map conf, IMetricsContext iMetricsContext, int partitionIndex, int numPartitions) {
        return new OutBreakTrendState(new OutBreakTrendBackingMap());
    }
}
